package com.guigu.controller;

import com.guigu.pojo.BrowsingHistory;
import com.guigu.service.BrowsingHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@CrossOrigin
@RestController
@RequestMapping("/browsinghistory/")
public class BrowsingHistoryController {

    @Autowired
    BrowsingHistoryService browsingHistoryService;

    //根据用户id和商品id查询浏览记录
    @GetMapping("createbrowsinghistory.action")
    public Map createbrowsinghistory(BrowsingHistory browsingHistory){
        return browsingHistoryService.createbrowsinghistory(browsingHistory);
    }

}
